package com.example.book.enums;

public enum ResutlCode {

    /**
     * 0 - 成功
     * -1 - 失败
     * -2 - 未登入
     */
    SUCCESS(0),
    FATL(-1),
    UNLOGIN(-2);


    private int code;

    ResutlCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
